import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'Calendars.dart';
import 'my_add_calendar_method_channel.dart';

abstract class MyAddCalendarPlatform extends PlatformInterface {
  /// Constructs a MyAddCalendarPlatform.
  MyAddCalendarPlatform() : super(token: _token);

  static final Object _token = Object();

  static MyAddCalendarPlatform _instance = MethodChannelMyAddCalendar();

  /// The default instance of [MyAddCalendarPlatform] to use.
  ///
  /// Defaults to [MethodChannelMyAddCalendar].
  static MyAddCalendarPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [MyAddCalendarPlatform] when
  /// they register themselves.
  static set instance(MyAddCalendarPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<String> createEvent(Calendars calendars) {
    throw UnimplementedError('createEvent(Calendars) has not been implemented.');
  }

  Future<bool> deleteEvent(String eventId) {
    throw UnimplementedError('deleteEvent(String) has not been implemented.');
  }

  Future<String> updateEvent(Calendars calendars) {
    throw UnimplementedError('updateEvent(Calendars) has not been implemented.');
  }

  Future<bool> checkReadPermission() {
    throw UnimplementedError('checkReadPermission() has not been implemented.');
  }

  Future<bool> checkWritePermission() {
    throw UnimplementedError('checkWritePermission() has not been implemented.');
  }
}
